from django.contrib import admin
from .models import Template


@admin.register(Template)
class TemplateAdmin(admin.ModelAdmin):
    list_display = ('name', 'is_default', 'updated_at')
    list_filter = ('is_default',)
    search_fields = ('name',)
    readonly_fields = ('created_at', 'updated_at')
